package org.hy.persistence.mypage;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.hy.domain.mypage.MyCareerComplaint;
import org.hy.domain.mypage.MyCareerComplaintComment;

public interface MyCareerComplaintMapper {

    MyCareerComplaint findMyCareerComplaintWithCommentsById(@Param("id") int id,@Param("offset")int offset,@Param("size")int size);
	
	List<MyCareerComplaint> findMyCareerComplaintsWithCommentsByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	MyCareerComplaint findMyCareerComplaintWithDefaultCommentsById(int id);
	
	List<MyCareerComplaint> findMyCareerComplaintsWithDefaultCommentsByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	int updateMyCareerComplaint(MyCareerComplaint myCareerComplaint);
	
	int insertMyCareerComplaint(MyCareerComplaint myCareerComplaint);
	
	int deleteMyCareerComplaint(Integer id);
	
	int updateMyCareerComplaintComments(MyCareerComplaintComment myCareerComplaintComment);
	
    int insertMyCareerComplaintComments(MyCareerComplaintComment myCareerComplaintComment);
	
	int deleteMyCareerComplaintComments(Integer id);
	
	int countMyCareerComplaint(int uid);
	
	int countMyCareerComplaintComment(int refFeedId);
	
}
